<template>
  <div id="root">
    <employer-info :employer="employer" @success="success"></employer-info>
  </div>
</template>

<script>
import EmployerInfo from "../../components/EmployerInfo.vue";
export default {
  components: { EmployerInfo },
  data() {
    return {
      employer: {
        name: "",
        companyName: "",
        position: "",
        avatarUrl:
          "https://chaohaopin.oss-cn-hangzhou.aliyuncs.com/37769f4a1b794bc5a3739db5a3f93da9.png",
        fillStatus: 1,
      },
    };
  },
  methods: {
    success() {
      setTimeout(() => {
        this.$router.push("/employer/releasePosition");
      }, 2000);
    },
  },
  created() {
    localStorage.setItem("avatarUrl", "https://chaohaopin.oss-cn-hangzhou.aliyuncs.com/37769f4a1b794bc5a3739db5a3f93da9.png")
  }
};
</script>

<style>
#root {
  width: 600px;
  margin: 50px auto;
}
</style>